<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./vue.js"></script>
</head>
<body>
  <div id="app">
    <!-- v-bind可以用来绑定任意属性，包括自定义属性 -->
    <!-- v-bind:src 可以简写为 :src -->
    <img v-bind:src="user.avatar" v-bind:alt="user.name" :title="user.name">
  </div>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        user: {
          avatar: 'https://cn.vuejs.org/images/dcloud.gif',
          name: '张三'
        }
      }
    })
    
  </script>
</body>
</html>